package com.yunwaikeji.gy_tool_library.model;

import android.widget.ImageView;

import com.yunwaikeji.gy_tool_library.info.GYHttpInfo;
import com.yunwaikeji.gy_tool_library.info.GYImageRecyclerInfo;

public class GYImageRecyclerModel extends GYBaseModel implements GYImageRecyclerInfo, GYHttpInfo {
    private String path;//全路径
    private boolean edit;//是否可以编辑
    private PathType pathType;//类型
    private ImageView.ScaleType scaleType = null;
    private State state = State.DOWNLOAD;//状态
    private boolean upload;//是否需要上传
    private String uploadUrl;//上传地址
    @RequestMethod
    private String requestMethod = RequestMethod.POST;//请求方式
    private String uploadName = "file";//文件名
    private String uploadTip;//提示信息
    private String uploadSuccessUrl;//上传成功后的地址

    public String getPath() {
        return path;
    }

    public GYImageRecyclerModel setPath(String path) {
        this.path = path;
        return this;
    }

    public GYImageRecyclerModel setPath(Integer path) {
        return setPath(String.valueOf(path));
    }

    public boolean isEdit() {
        return edit;
    }

    public GYImageRecyclerModel setEdit(boolean edit) {
        this.edit = edit;
        return this;
    }

    public PathType getPathType() {
        return pathType;
    }

    public GYImageRecyclerModel setPathType(PathType pathType) {
        this.pathType = pathType;
        return this;
    }

    public ImageView.ScaleType getScaleType() {
        return scaleType;
    }

    public GYImageRecyclerModel setScaleType(ImageView.ScaleType scaleType) {
        this.scaleType = scaleType;
        return this;
    }

    public State getState() {
        return state;
    }

    public GYImageRecyclerModel setState(State state) {
        this.state = state;
        return this;
    }

    public boolean isUpload() {
        return upload;
    }

    public GYImageRecyclerModel setUpload(boolean upload) {
        this.upload = upload;
        return this;
    }

    public String getUploadUrl() {
        return uploadUrl;
    }

    public GYImageRecyclerModel setUploadUrl(String uploadUrl) {
        this.uploadUrl = uploadUrl;
        return this;
    }

    @RequestMethod
    public String getRequestMethod() {
        return requestMethod;
    }

    public GYImageRecyclerModel setRequestMethod(@RequestMethod String requestMethod) {
        this.requestMethod = requestMethod;
        return this;
    }

    public String getUploadName() {
        return uploadName;
    }

    public GYImageRecyclerModel setUploadName(String uploadName) {
        this.uploadName = uploadName;
        return this;
    }

    public String getUploadTip() {
        return uploadTip;
    }

    public GYImageRecyclerModel setUploadTip(String uploadTip) {
        this.uploadTip = uploadTip;
        return this;
    }

    public String getUploadSuccessUrl() {
        return uploadSuccessUrl;
    }

    public GYImageRecyclerModel setUploadSuccessUrl(String uploadSuccessUrl) {
        this.uploadSuccessUrl = uploadSuccessUrl;
        return this;
    }
}
